home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / util / Smakefile < prev   
Encoding:
Makefile  |  1993-10-22  |  4.4 KB  |  215 lines

  1. # $Id: Smakefile,v 1.19 1993/10/23 03:12:15 ppessi Exp $
  2. #
  3. # Smakefile for AmiTCP/IP network utilities
  4. #
  5. # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  6. #               Helsinki University of Technology, Finland.
  7. #                  All rights reserved.
  8. #
  9. # Created      : Fri May 14 22:23:09 1993 ppessi
  10. # Last modified: Wed Oct 20 07:23:47 1993 ppessi
  11. #
  12. # $Log: Smakefile,v $
  13. # Revision 1.19  1993/10/23  03:12:15  ppessi
  14. # Removed SCOPTIONS files. Added new installation facilities.
  15. #
  16. # Revision 1.18  1993/10/14  00:04:15  ppessi
  17. # SCOPTIONS is now created automatically from Smakefile
  18. # Added `install' target.
  19. #
  20. # Revision 1.17  1993/08/12  09:26:08  jraja
  21. # Removed unnecesary files from route.
  22. #
  23. # Revision 1.16  1993/08/12  06:19:13  jraja
  24. # Updated the email-address.
  25. #
  26. # Revision 1.15  1993/08/10  20:49:48  jraja
  27. # Added agnet/SCOPTIONS.
  28. #
  29. # Revision 1.14  1993/08/04  07:30:51  jraja
  30. # Updated AGNET_SRC from the GNUmakefile.
  31. # cleaner does not delete the /bin directory itself any more.
  32. #
  33. # Revision 1.12  1993/08/02  13:32:56  jraja
  34. # Added netstat to the files to moved to the bin-directory.
  35. #
  36. # Revision 1.11  1993/07/30  13:15:55  jraja
  37. # Added Agnet to the distribution.
  38. #
  39. # Revision 1.10  1993/06/18  10:47:26  jraja
  40. # Removed route/route.txt from the route depenencies.
  41. #
  42. # Revision 1.9  1993/06/04  11:51:25  jraja
  43. # Fixes for the first release.
  44. #
  45. # Revision 1.7  1993/05/27  18:59:36  ppessi
  46. # Fixed strip&bin rules.
  47. #
  48. # Revision 1.6  1993/05/26  23:49:28  ppessi
  49. # Added letnet to utility set.
  50. #
  51. # Revision 1.5  1993/05/23  18:07:40  ppessi
  52. # Added letnet to the official distribution.
  53. #
  54. # Revision 1.4  1993/05/15  13:36:58  ppessi
  55. # Added stripping.
  56. #
  57. # Revision 1.3  1993/05/15  12:57:25  ppessi
  58. # Fixed silly bugs.
  59. #
  60. # Revision 1.2  1993/05/15  00:53:00  ppessi
  61. # Updated online
  62. #
  63. # Revision 1.1  1993/05/14  23:39:48  ppessi
  64. # Initial revision
  65. #
  66.  
  67. DEST = amitcp:
  68.  
  69. #
  70. # These will be made & moved to the bin directory
  71. #
  72. PROGS = arp/arp ifconfig/ifconfig ping/ping inetd/inetd letnet/letnet \
  73.     online/online online/offline route/route netstat/netstat
  74.  
  75. MAKELINK = makelink
  76. MKDIR = makedir
  77. MAKE = smake
  78. RM   = delete
  79. CP = copy dates
  80. AUTODOC= autodoc
  81.  
  82. OPTFLAGS= Optimize Stripdebug NoDebug
  83. DEBUGFLAGS= NoOptimize DEBUG=FULLFLUSH
  84.  
  85. DEFS="DEF=RCS_ID_C=static char *rcsid" \
  86.       DEF=AMIGA DEF=NODB
  87. IDIRS=  IDIR=netinclude: 
  88. SCFLAGS= STRINGMERGE STRUCTUREEQUIVALENCE \
  89.      NOSTACKCHECK NOMULTIPLEINCLUDES \
  90.      NOERRORSOURCE NOVERSION NOERRORHIGHLIGHT \
  91.          IGNORE=224 IGNORE=92 \
  92.      SMALLCODE DATA=FAR \
  93.      MAP MAPHUNK MAPSYMBOLS MAPLIB MAPXREFERENCE \
  94.      LINKEROPTIONS=plain NOICONS \
  95.      OPTINL OPTTIME OPTCOMP=5 OPTDEP=5 OPTRDEP=5 \
  96.      $(IDIRS) $(DEFS)
  97.  
  98. # Minimalistic utilites:
  99. ARP_SRC = arp/arp.c arp/Smake.def 
  100.  
  101. IFCONFIG_SRC = ifconfig/ifconfig.c ifconfig/Smake.def 
  102.  
  103. PING_SRC = ping/ping.c ping/Smake.def 
  104.  
  105. ROUTE_SRC = route/Smakefile route/keywords.h route/route.c
  106.  
  107. # Not minimalistic:
  108. ONLINE_SRC = online/Smakefile online/online.c
  109.  
  110. NETSTAT_SRC = netstat/netstat.rexx
  111.  
  112. LETNET_SRC = letnet/Smakefile letnet/letnet.h letnet/letnet.c letnet/sender.c 
  113.  
  114. INETD_SRC = inetd/inetd.c inetd/Smakefile
  115.  
  116. SRCS= $(ARP_SRC) $(IFCONFIG_SRC) $(PING_SRC) $(ROUTE_SRC) $(ONLINE_SRC) \
  117.       $(NETSTAT_SRC) $(LETNET_SRC) $(INETD_SRC)
  118.  
  119. UTILDOC= netutil.doc
  120.  
  121. all: $(PROGS)
  122.  
  123. install: $(PROGS) $(UTILDOC) $(DEST)bin $(DEST)doc
  124.     $(CP) $(PROGS) to $(DEST)bin
  125.     $(CP) $(UTILDOC) to $(DEST)doc
  126.  
  127. netutil.doc:
  128.     $(AUTODOC) -C -I -c $(SRCS) >$@
  129.  
  130. $(DEST)bin:
  131.     $(MKDIR) $(DEST)bin
  132.  
  133. $(DEST)doc:
  134.     $(MKDIR) $(DEST)doc
  135.  
  136. SCOPTIONS: Smakefile
  137.     copy to $@ <from < 
  138. $(OPTFLAGS) $(SCFLAGS) 
  139. <
  140.  
  141. # smake clean debug all to make a debugging version
  142. DEBUG:
  143.     copy to SCOPTIONS <from < 
  144. $(DEBUGFLAGS) $(SCFLAGS) 
  145. <
  146.  
  147. arp/arp: $(ARP_SRC) 
  148.     execute < <
  149.     $(RM) $@
  150.     cd arp
  151.     $(MAKE) -f /AMITCP.SCmk
  152.     cd /
  153. <
  154.  
  155. ifconfig/ifconfig: $(IFCONFIG_SRC) 
  156.     execute < <
  157.     $(RM) $@
  158.     cd ifconfig
  159.     $(MAKE) -f /AMITCP.SCmk
  160.     cd /
  161. <
  162.  
  163. ping/ping: $(PING_SRC) 
  164.     execute < <
  165.     $(RM) $@
  166.     cd ping
  167.     $(MAKE) -f /AMITCP.SCmk
  168.     cd /
  169. <
  170.  
  171. route/route: $(ROUTE_SRC) 
  172.     execute < <
  173.     $(RM) $@
  174.     cd route
  175.     $(MAKE) #-f /AMITCP.SCmk
  176.     cd /
  177. <
  178.  
  179. letnet/letnet: $(LETNET_SRC) 
  180.     execute < <
  181.     $(RM) $@
  182.     cd letnet
  183.     $(MAKE) 
  184.     cd /
  185. <
  186.  
  187. inetd/inetd: $(INETD_SRC) 
  188.     execute < <
  189.     $(RM) $@
  190.     cd inetd
  191.     $(MAKE) 
  192.     cd /
  193. <
  194.  
  195. online/offline: online/online
  196.  
  197. online/online: $(ONLINE_SRC) 
  198.     execute < <
  199.     $(RM) $@
  200.     cd online
  201.     $(MAKE) #-f /AMITCP.SCmk
  202.     cd /
  203. <
  204.  
  205. netstat/netstat: $(NETSTAT_SRC)
  206.     type $(NETSTAT_SRC) to $@
  207.     protect $@ +s
  208.  
  209. clean:
  210.     -$(RM) \#?/\#?.(o|lnk|map) SCOPTIONS
  211.  
  212. cleaner: clean
  213.     -$(RM) $(PROGS)
  214.  
  215.